package com.cq.hd.member.service;

import com.cq.hd.common.pagination.Page;
import com.cq.hd.member.api.dto.MyMerchantBusinessPageDto;
import com.cq.hd.member.api.dto.UpdateBusinessMerchantOrderDto;
import com.cq.hd.member.api.vo.*;
import com.cq.hd.member.po.TbBusinessMerchantPo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 商家商户关联表 服务类
 * </p>
 *
 * @author mYunYu
 * @since 2023-11-21
 */
public interface TbBusinessMerchantService extends IService<TbBusinessMerchantPo> {

    BusinessMerchantVo getOwnByBusinessId(Long businessId, Integer ownState);

    Page<MyMerchantBusinessPageVo> pageMyBusiness(MyMerchantBusinessPageDto myMerchantBusinessPageDto);

    List<MyMerchantBusinessPageVo> listMyBusiness(MyMerchantBusinessPageDto myMerchantBusinessPageDto);

    List<MerchantPageVo> listMerchantByBusinessId(Long businessId);

    Boolean updateBusinessMerchantOrder(UpdateBusinessMerchantOrderDto updateBusinessMerchantOrderDto);

    List<BusinessMerchantVo> listOwnMerchantByBusinessIds(List<Long> businessIds);

    List<MasterBusinessVo> listMasterBusinessByMerchantIds(List<Long> merchantIds);

}
